home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
bug
/
aptitude
next >
Wrap
Text File
|
2009-09-28
|
641b
|
27 lines
#!/usr/bin/python
import os
out = os.fdopen(3, 'w')
if 'TERM' in os.environ:
out.write('Terminal: %s\n' % os.environ['TERM'])
else:
out.write('$TERM not set.\n')
if 'DISPLAY' in os.environ:
out.write('$DISPLAY is set.\n')
else:
out.write('$DISPLAY not set.\n')
out.write('`which aptitude`: %s\n' % os.popen('/usr/bin/which aptitude 2>&1').read().strip())
out.write('aptitude version information:\n')
# I would like to run `which aptitude`, but that raises security issues.
os.system('/usr/bin/aptitude --version 1>&3')
out.write('\n')
out.write('aptitude linkage:\n')
os.system('/usr/bin/ldd /usr/bin/aptitude 1>&3')